.class public Lcom/nemustech/regina/AppList;
.super Lcom/nemustech/tiffany/world/TFPanel;
.source "AppList.java"


# static fields
.field private static final LOG_FLAG:Z = false

.field private static final MAXIMUM_DEVIATION_TO_DISPALY_SELECTED_IMAGE:F = 0.05f

.field private static final TAG:Ljava/lang/String; = "AppList"


# instance fields
.field private mAppInfos:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/nemustech/regina/AppInfo;",
            ">;"
        }
    .end annotation
.end field

.field private mAppListCol:I

.field private mAppListImageMaker:Lcom/nemustech/regina/AppListImageMaker;

.field private mAppListLeft:I

.field private mAppListRow:I

.field private mAppListTop:I

.field private mAvailableSize:I

.field private mElementAppList:Lcom/nemustech/regina/ElementAppList;

.field private mHeight:I

.field private mLastSelectedAppIndex:I

.field private mLastSelectedAppLocationX:F

.field private mLastSelectedAppLocationY:F

.field mOnTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

.field private mPageIndex:I

.field private mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

.field private mRes:Lcom/nemustech/regina/ResourceCare;

.field private mScreenHeight:I

.field private mScreenWidth:I

.field private mShortCutHeight:I

.field private mShortCutSidePadding:I

.field private mShortCutTopPadding:I

.field private mShortCutWidth:I

.field private mStartIndex:I

.field private mWidth:I


# direct methods
.method public constructor <init>(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/regina/ElementAppList;II)V
    .locals 3
    .parameter "reginaLauncher"
    .parameter "elementAppList"
    .parameter "row"
    .parameter "col"

    .prologue
    const/4 v1, 0x4

    const/4 v0, -0x1

    .line 45
    invoke-direct {p0}, Lcom/nemustech/tiffany/world/TFPanel;-><init>()V

    .line 18
    iput v1, p0, Lcom/nemustech/regina/AppList;->mAppListRow:I

    .line 19
    iput v1, p0, Lcom/nemustech/regina/AppList;->mAppListCol:I

    .line 31
    iput v0, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppIndex:I

    .line 37
    iput v0, p0, Lcom/nemustech/regina/AppList;->mStartIndex:I

    .line 42
    iput v0, p0, Lcom/nemustech/regina/AppList;->mPageIndex:I

    .line 79
    new-instance v0, Lcom/nemustech/regina/AppList$1;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/AppList$1;-><init>(Lcom/nemustech/regina/AppList;)V

    iput-object v0, p0, Lcom/nemustech/regina/AppList;->mOnTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    .line 46
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/AppList;->banChiselFringe(Z)V

    .line 47
    iput-object p1, p0, Lcom/nemustech/regina/AppList;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    .line 48
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v0}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/AppList;->mRes:Lcom/nemustech/regina/ResourceCare;

    .line 49
    iput p3, p0, Lcom/nemustech/regina/AppList;->mAppListRow:I

    .line 50
    iput p4, p0, Lcom/nemustech/regina/AppList;->mAppListCol:I

    .line 52
    const-string v0, "AppList Panel"

    iput-object v0, p0, Lcom/nemustech/regina/AppList;->mDescription:Ljava/lang/String;

    .line 54
    iput-object p2, p0, Lcom/nemustech/regina/AppList;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    .line 55
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementAppList;->getAppListImageMaker()Lcom/nemustech/regina/AppListImageMaker;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/AppList;->mAppListImageMaker:Lcom/nemustech/regina/AppListImageMaker;

    .line 58
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v0}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/AppList;->mScreenWidth:I

    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v0}, Lcom/nemustech/regina/RUtils;->getScreenHeightAvailable(Landroid/content/Context;)I

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/AppList;->mScreenHeight:I

    .line 61
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mRes:Lcom/nemustech/regina/ResourceCare;

    const v1, 0x7f06008e

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/AppList;->mShortCutSidePadding:I

    .line 62
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mRes:Lcom/nemustech/regina/ResourceCare;

    const v1, 0x7f06008f

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/AppList;->mShortCutTopPadding:I

    .line 64
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mAppListImageMaker:Lcom/nemustech/regina/AppListImageMaker;

    invoke-virtual {v0}, Lcom/nemustech/regina/AppListImageMaker;->getAppListWidth()I

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/AppList;->mWidth:I

    .line 65
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mAppListImageMaker:Lcom/nemustech/regina/AppListImageMaker;

    invoke-virtual {v0}, Lcom/nemustech/regina/AppListImageMaker;->getAppListHeight()I

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/AppList;->mHeight:I

    .line 67
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mAppListImageMaker:Lcom/nemustech/regina/AppListImageMaker;

    invoke-virtual {v0}, Lcom/nemustech/regina/AppListImageMaker;->getShortcutWidth()I

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/AppList;->mShortCutWidth:I

    .line 68
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mAppListImageMaker:Lcom/nemustech/regina/AppListImageMaker;

    invoke-virtual {v0}, Lcom/nemustech/regina/AppListImageMaker;->getShortcutHeight()I

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/AppList;->mShortCutHeight:I

    .line 70
    iget v0, p0, Lcom/nemustech/regina/AppList;->mScreenWidth:I

    iget v1, p0, Lcom/nemustech/regina/AppList;->mWidth:I

    sub-int/2addr v0, v1

    div-int/lit8 v0, v0, 0x2

    iput v0, p0, Lcom/nemustech/regina/AppList;->mAppListLeft:I

    .line 71
    iget v0, p0, Lcom/nemustech/regina/AppList;->mScreenHeight:I

    iget v1, p0, Lcom/nemustech/regina/AppList;->mHeight:I

    sub-int/2addr v0, v1

    div-int/lit8 v0, v0, 0x2

    iput v0, p0, Lcom/nemustech/regina/AppList;->mAppListTop:I

    .line 73
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget v1, p0, Lcom/nemustech/regina/AppList;->mWidth:I

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v0

    iget-object v1, p0, Lcom/nemustech/regina/AppList;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget v2, p0, Lcom/nemustech/regina/AppList;->mHeight:I

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v1

    invoke-virtual {p0, v0, v1}, Lcom/nemustech/regina/AppList;->setSize(FF)V

    .line 76
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mOnTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/AppList;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 77
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ElementAppList;
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mElementAppList:Lcom/nemustech/regina/ElementAppList;

    return-object v0
.end method

.method static synthetic access$100(Lcom/nemustech/regina/AppList;FF)I
    .locals 1
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"

    .prologue
    .line 10
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/AppList;->getIndexOfAppInfo(FF)I

    move-result v0

    return v0
.end method

.method static synthetic access$1000(Lcom/nemustech/regina/AppList;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget v0, p0, Lcom/nemustech/regina/AppList;->mScreenWidth:I

    return v0
.end method

.method static synthetic access$1100(Lcom/nemustech/regina/AppList;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget v0, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppLocationY:F

    return v0
.end method

.method static synthetic access$1102(Lcom/nemustech/regina/AppList;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 10
    iput p1, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppLocationY:F

    return p1
.end method

.method static synthetic access$1200(Lcom/nemustech/regina/AppList;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget v0, p0, Lcom/nemustech/regina/AppList;->mShortCutHeight:I

    return v0
.end method

.method static synthetic access$1300(Lcom/nemustech/regina/AppList;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget v0, p0, Lcom/nemustech/regina/AppList;->mScreenHeight:I

    return v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/AppList;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget v0, p0, Lcom/nemustech/regina/AppList;->mStartIndex:I

    return v0
.end method

.method static synthetic access$300(Lcom/nemustech/regina/AppList;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget v0, p0, Lcom/nemustech/regina/AppList;->mAvailableSize:I

    return v0
.end method

.method static synthetic access$402(Lcom/nemustech/regina/AppList;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 10
    iput p1, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppIndex:I

    return p1
.end method

.method static synthetic access$500(Lcom/nemustech/regina/AppList;)Ljava/util/List;
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mAppInfos:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$600(Lcom/nemustech/regina/AppList;I[I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"

    .prologue
    .line 10
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/AppList;->calcLocation(I[I)V

    return-void
.end method

.method static synthetic access$700(Lcom/nemustech/regina/AppList;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget v0, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppLocationX:F

    return v0
.end method

.method static synthetic access$702(Lcom/nemustech/regina/AppList;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 10
    iput p1, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppLocationX:F

    return p1
.end method

.method static synthetic access$800(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ReginaLauncher;
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    return-object v0
.end method

.method static synthetic access$900(Lcom/nemustech/regina/AppList;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 10
    iget v0, p0, Lcom/nemustech/regina/AppList;->mShortCutWidth:I

    return v0
.end method

.method private calcLocation(I[I)V
    .locals 6
    .parameter "index"
    .parameter "location"

    .prologue
    .line 178
    iget v4, p0, Lcom/nemustech/regina/AppList;->mAppListCol:I

    rem-int v2, p1, v4

    .line 179
    .local v2, x:I
    iget v4, p0, Lcom/nemustech/regina/AppList;->mAppListRow:I

    div-int v3, p1, v4

    .line 180
    .local v3, y:I
    iget v4, p0, Lcom/nemustech/regina/AppList;->mShortCutWidth:I

    iget v5, p0, Lcom/nemustech/regina/AppList;->mShortCutSidePadding:I

    add-int/2addr v4, v5

    mul-int/2addr v4, v2

    iget v5, p0, Lcom/nemustech/regina/AppList;->mAppListLeft:I

    add-int v0, v4, v5

    .line 181
    .local v0, locationX:I
    iget v4, p0, Lcom/nemustech/regina/AppList;->mShortCutHeight:I

    iget v5, p0, Lcom/nemustech/regina/AppList;->mShortCutTopPadding:I

    add-int/2addr v4, v5

    mul-int/2addr v4, v3

    iget v5, p0, Lcom/nemustech/regina/AppList;->mAppListTop:I

    add-int v1, v4, v5

    .line 182
    .local v1, locationY:I
    const/4 v4, 0x0

    aput v0, p2, v4

    .line 183
    const/4 v4, 0x1

    aput v1, p2, v4

    .line 184
    return-void
.end method

.method private getIndexOfAppInfo(FF)I
    .locals 11
    .parameter "x"
    .parameter "y"

    .prologue
    const/4 v10, -0x1

    .line 188
    iget v8, p0, Lcom/nemustech/regina/AppList;->mAppListLeft:I

    int-to-float v8, v8

    sub-float v8, p1, v8

    float-to-int v6, v8

    .line 189
    .local v6, xPos:I
    iget v8, p0, Lcom/nemustech/regina/AppList;->mAppListTop:I

    int-to-float v8, v8

    sub-float v8, p2, v8

    float-to-int v7, v8

    .line 192
    .local v7, yPos:I
    iget v8, p0, Lcom/nemustech/regina/AppList;->mShortCutWidth:I

    iget v9, p0, Lcom/nemustech/regina/AppList;->mShortCutSidePadding:I

    add-int/2addr v8, v9

    div-int v2, v6, v8

    .line 193
    .local v2, quotientOfX:I
    iget v8, p0, Lcom/nemustech/regina/AppList;->mShortCutWidth:I

    iget v9, p0, Lcom/nemustech/regina/AppList;->mShortCutSidePadding:I

    add-int/2addr v8, v9

    mul-int/2addr v8, v2

    iget v9, p0, Lcom/nemustech/regina/AppList;->mShortCutWidth:I

    add-int v4, v8, v9

    .line 194
    .local v4, validAreaOfX:I
    if-ge v2, v4, :cond_0

    move v0, v2

    .line 196
    .local v0, indexOfX:I
    :goto_0
    if-gez v0, :cond_1

    move v8, v10

    .line 206
    :goto_1
    return v8

    .end local v0           #indexOfX:I
    :cond_0
    move v0, v10

    .line 194
    goto :goto_0

    .line 199
    .restart local v0       #indexOfX:I
    :cond_1
    iget v8, p0, Lcom/nemustech/regina/AppList;->mShortCutHeight:I

    iget v9, p0, Lcom/nemustech/regina/AppList;->mShortCutTopPadding:I

    add-int/2addr v8, v9

    div-int v3, v7, v8

    .line 200
    .local v3, quotientOfY:I
    iget v8, p0, Lcom/nemustech/regina/AppList;->mShortCutHeight:I

    iget v9, p0, Lcom/nemustech/regina/AppList;->mShortCutTopPadding:I

    add-int/2addr v8, v9

    mul-int/2addr v8, v3

    iget v9, p0, Lcom/nemustech/regina/AppList;->mShortCutHeight:I

    add-int v5, v8, v9

    .line 201
    .local v5, validAreaOfY:I
    if-ge v3, v5, :cond_2

    move v1, v3

    .line 203
    .local v1, indexOfY:I
    :goto_2
    if-gez v1, :cond_3

    move v8, v10

    .line 204
    goto :goto_1

    .end local v1           #indexOfY:I
    :cond_2
    move v1, v10

    .line 201
    goto :goto_2

    .line 206
    .restart local v1       #indexOfY:I
    :cond_3
    iget v8, p0, Lcom/nemustech/regina/AppList;->mAppListCol:I

    mul-int/2addr v8, v1

    add-int/2addr v8, v0

    goto :goto_1
.end method


# virtual methods
.method public getLastSelectedAppIntent()Landroid/content/Intent;
    .locals 2

    .prologue
    .line 155
    iget v0, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppIndex:I

    iget v1, p0, Lcom/nemustech/regina/AppList;->mStartIndex:I

    if-lt v0, v1, :cond_0

    iget v0, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppIndex:I

    iget v1, p0, Lcom/nemustech/regina/AppList;->mAvailableSize:I

    if-ge v0, v1, :cond_0

    .line 156
    iget-object v0, p0, Lcom/nemustech/regina/AppList;->mAppInfos:Ljava/util/List;

    iget v1, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppIndex:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/nemustech/regina/AppInfo;

    iget-object v0, p0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    .line 158
    :goto_0
    return-object v0

    .restart local p0
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getLastSelectedAppLocationX()F
    .locals 1

    .prologue
    .line 170
    iget v0, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppLocationX:F

    return v0
.end method

.method public getLastSelectedAppLocationY()F
    .locals 1

    .prologue
    .line 174
    iget v0, p0, Lcom/nemustech/regina/AppList;->mLastSelectedAppLocationY:F

    return v0
.end method

.method public getNearestAppLocation([FFF)[F
    .locals 8
    .parameter "locations"
    .parameter "x"
    .parameter "y"

    .prologue
    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 141
    invoke-direct {p0, p2, p3}, Lcom/nemustech/regina/AppList;->getIndexOfAppInfo(FF)I

    move-result v1

    .line 142
    .local v1, index:I
    invoke-virtual {p0}, Lcom/nemustech/regina/AppList;->getParentHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/tiffany/world/TFHolder;->getDeviation()F

    move-result v2

    .line 143
    .local v2, parentDeviation:F
    if-ltz v1, :cond_0

    iget v3, p0, Lcom/nemustech/regina/AppList;->mStartIndex:I

    add-int/2addr v3, v1

    iget v4, p0, Lcom/nemustech/regina/AppList;->mAvailableSize:I

    if-ge v3, v4, :cond_0

    invoke-static {v2}, Ljava/lang/Math;->abs(F)F

    move-result v3

    const v4, 0x3d4ccccd

    cmpg-float v3, v3, v4

    if-gtz v3, :cond_0

    .line 145
    const/4 v3, 0x2

    new-array v0, v3, [I

    .line 146
    .local v0, currentLocations:[I
    invoke-direct {p0, v1, v0}, Lcom/nemustech/regina/AppList;->calcLocation(I[I)V

    .line 147
    iget-object v3, p0, Lcom/nemustech/regina/AppList;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget v4, p0, Lcom/nemustech/regina/AppList;->mShortCutWidth:I

    div-int/lit8 v4, v4, 0x2

    iget v5, p0, Lcom/nemustech/regina/AppList;->mScreenWidth:I

    div-int/lit8 v5, v5, 0x2

    sub-int/2addr v4, v5

    aget v5, v0, v6

    add-int/2addr v4, v5

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    aput v3, p1, v6

    .line 148
    iget-object v3, p0, Lcom/nemustech/regina/AppList;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget v4, p0, Lcom/nemustech/regina/AppList;->mShortCutHeight:I

    div-int/lit8 v4, v4, 0x2

    neg-int v4, v4

    iget v5, p0, Lcom/nemustech/regina/AppList;->mScreenHeight:I

    div-int/lit8 v5, v5, 0x2

    add-int/2addr v4, v5

    aget v5, v0, v7

    sub-int/2addr v4, v5

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    aput v3, p1, v7

    move-object v3, p1

    .line 150
    .end local v0           #currentLocations:[I
    :goto_0
    return-object v3

    :cond_0
    const/4 v3, 0x0

    goto :goto_0
.end method

.method public getPageIndex()I
    .locals 1

    .prologue
    .line 211
    iget v0, p0, Lcom/nemustech/regina/AppList;->mPageIndex:I

    return v0
.end method

.method public getSelectedAppIntent(FF)Landroid/content/Intent;
    .locals 3
    .parameter "x"
    .parameter "y"

    .prologue
    .line 162
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/AppList;->getIndexOfAppInfo(FF)I

    move-result v1

    iget v2, p0, Lcom/nemustech/regina/AppList;->mStartIndex:I

    add-int v0, v1, v2

    .line 163
    .local v0, index:I
    iget v1, p0, Lcom/nemustech/regina/AppList;->mAvailableSize:I

    if-ge v0, v1, :cond_0

    .line 164
    iget-object v1, p0, Lcom/nemustech/regina/AppList;->mAppInfos:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/nemustech/regina/AppInfo;

    iget-object v1, p0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    .line 166
    :goto_0
    return-object v1

    .restart local p0
    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method

.method public setAppInfos(Ljava/util/List;I)V
    .locals 0
    .parameter
    .parameter "availableSize"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/nemustech/regina/AppInfo;",
            ">;I)V"
        }
    .end annotation

    .prologue
    .line 220
    .local p1, appInfos:Ljava/util/List;,"Ljava/util/List<Lcom/nemustech/regina/AppInfo;>;"
    iput-object p1, p0, Lcom/nemustech/regina/AppList;->mAppInfos:Ljava/util/List;

    .line 221
    iput p2, p0, Lcom/nemustech/regina/AppList;->mAvailableSize:I

    .line 222
    return-void
.end method

.method public setPageIndex(I)V
    .locals 2
    .parameter "pageIndex"

    .prologue
    .line 215
    iput p1, p0, Lcom/nemustech/regina/AppList;->mPageIndex:I

    .line 216
    iget v0, p0, Lcom/nemustech/regina/AppList;->mAppListCol:I

    mul-int/2addr v0, p1

    iget v1, p0, Lcom/nemustech/regina/AppList;->mAppListRow:I

    mul-int/2addr v0, v1

    iput v0, p0, Lcom/nemustech/regina/AppList;->mStartIndex:I

    .line 217
    return-void
.end method
